import { phonePx } from '../../../../util/adapt';
import { CLASS_ROOM_RIGHT_SCALE } from '../../constant';

export enum MessageType {
  Unknown,
  Text,
  Voice,
  Event
}

export const empty = '';

export const CHAT_ROOM_LAST_MESSAGE_IDS = 'lastMessageIds';

export const MAX_CAN_WITH_DRAW_TIME = 2 * 60;

export const MAX_MESSAGE_WIDTH = phonePx(78) * CLASS_ROOM_RIGHT_SCALE;

export const MIN_MESSAGE_WIDTH = phonePx(54) * CLASS_ROOM_RIGHT_SCALE;

export const MAX_TEXT_MESSAGE_WIDTH = phonePx(94) * CLASS_ROOM_RIGHT_SCALE;

export const MIN_TEXT_MESSAGE_WIDTH = phonePx(40) * CLASS_ROOM_RIGHT_SCALE;

export const MIN_TEXT_MESSAGE_HEIGHT = phonePx(30) * CLASS_ROOM_RIGHT_SCALE;
